//该文件专门用创建整个应用的路有器
import VueRouter from 'vue-router'
//引入组件
import Home from '../src/components/Home'
import Mymusic from '../src/routers/Mymusic'
import Guanzhu from '../src/routers/Guanzhu'
import Shangcheng from '../src/routers/Shangcheng'
import Singer from '../src/routers/Singer'
import Download from '../src/routers/Download'

import Tuijian from '../src/routers/Tuijian'
import Phb from '../src/routers/Phb'
import Gedan from '../src/routers/Gedan'
import Zhubo from '../src/routers/Zhubo'
import Geshou from '../src/routers/Geshou'
import Xingdie from '../src/routers/Xingdie'

const router = new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/home/tuijian'

        },
        {
            path: '/home',
            redirect: '/home/tuijian'
        },
        {
            path: '/home',
            component: Home,
            children: [
                {
                    path: 'tuijian',
                    component: Tuijian
                },
                {
                    path: 'phb',
                    component: Phb
                },
                {
                    path: 'gedan',
                    component: Gedan
                },
                {
                    path: 'zhubo',
                    component: Zhubo
                },
                {
                    path: 'geshou',
                    component: Geshou
                },
                {
                    path: 'xingdie',
                    component: Xingdie
                },

            ]

        },
        {
            path: '/mymusic',
            component: Mymusic,

        },
        {
            path: '/guanzhu',
            component: Guanzhu,

        },
        {
            path: '/shangcheng',
            component: Shangcheng,
        },
        {
            path: '/singer',
            component: Singer,

        },
        {
            path: '/download',
            component: Download,

        },
    ]
})

export default router